Integrand size = 26, antiderivative size = 96 \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=-\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}}+\frac {2 \cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x) \csc ^4(e+f x)}{5 f \sqrt {a \cos ^2(e+f x)}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 96, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3255, 3286, 2686, 200} \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=-\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x) \csc ^4(e+f x)}{5 f \sqrt {a \cos ^2(e+f x)}}+\frac {2 \cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt {a \cos ^2(e+f x)}} \]
[In]
[Out]
Rule 200
Rule 2686
Rule 3255
Rule 3286
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cot ^6(e+f x)}{\sqrt {a \cos ^2(e+f x)}} \, dx \\ & = \frac {\cos (e+f x) \int \cot ^5(e+f x) \csc (e+f x) \, dx}{\sqrt {a \cos ^2(e+f x)}} \\ & = -\frac {\cos (e+f x) \text {Subst}\left (\int \left (-1+x^2\right )^2 \, dx,x,\csc (e+f x)\right )}{f \sqrt {a \cos ^2(e+f x)}} \\ & = -\frac {\cos (e+f x) \text {Subst}\left (\int \left (1-2 x^2+x^4\right ) \, dx,x,\csc (e+f x)\right )}{f \sqrt {a \cos ^2(e+f x)}} \\ & = -\frac {\cot (e+f x)}{f \sqrt {a \cos ^2(e+f x)}}+\frac {2 \cot (e+f x) \csc ^2(e+f x)}{3 f \sqrt {a \cos ^2(e+f x)}}-\frac {\cot (e+f x) \csc ^4(e+f x)}{5 f \sqrt {a \cos ^2(e+f x)}} \\ \end{align*}
Time = 0.08 (sec) , antiderivative size = 49, normalized size of antiderivative = 0.51 \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=-\frac {\cot (e+f x) \left (15-10 \csc ^2(e+f x)+3 \csc ^4(e+f x)\right )}{15 f \sqrt {a \cos ^2(e+f x)}} \]
[In]
[Out]
Time = 0.67 (sec) , antiderivative size = 74, normalized size of antiderivative = 0.77
method | result | size |
default | \(-\frac {\cos \left (f x +e \right ) \left (15 \left (\cos ^{4}\left (f x +e \right )\right )-20 \left (\cos ^{2}\left (f x +e \right )\right )+8\right )}{15 \left (\cos \left (f x +e \right )-1\right )^{2} \left (1+\cos \left (f x +e \right )\right )^{2} \sin \left (f x +e \right ) \sqrt {a \left (\cos ^{2}\left (f x +e \right )\right )}\, f}\) | \(74\) |
risch | \(-\frac {2 i \left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right ) \left (15 \,{\mathrm e}^{8 i \left (f x +e \right )}-20 \,{\mathrm e}^{6 i \left (f x +e \right )}+58 \,{\mathrm e}^{4 i \left (f x +e \right )}-20 \,{\mathrm e}^{2 i \left (f x +e \right )}+15\right )}{15 \sqrt {\left ({\mathrm e}^{2 i \left (f x +e \right )}+1\right )^{2} a \,{\mathrm e}^{-2 i \left (f x +e \right )}}\, f \left ({\mathrm e}^{2 i \left (f x +e \right )}-1\right )^{5}}\) | \(103\) |
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 79, normalized size of antiderivative = 0.82 \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=-\frac {{\left (15 \, \cos \left (f x + e\right )^{4} - 20 \, \cos \left (f x + e\right )^{2} + 8\right )} \sqrt {a \cos \left (f x + e\right )^{2}}}{15 \, {\left (a f \cos \left (f x + e\right )^{5} - 2 \, a f \cos \left (f x + e\right )^{3} + a f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )} \]
[In]
[Out]
\[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=\int \frac {\cot ^{6}{\left (e + f x \right )}}{\sqrt {- a \left (\sin {\left (e + f x \right )} - 1\right ) \left (\sin {\left (e + f x \right )} + 1\right )}}\, dx \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 1236 vs. \(2 (86) = 172\).
Time = 0.38 (sec) , antiderivative size = 1236, normalized size of antiderivative = 12.88 \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=\text {Too large to display} \]
[In]
[Out]
Exception generated. \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=\text {Exception raised: TypeError} \]
[In]
[Out]
Time = 20.96 (sec) , antiderivative size = 491, normalized size of antiderivative = 5.11 \[ \int \frac {\cot ^6(e+f x)}{\sqrt {a-a \sin ^2(e+f x)}} \, dx=-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,4{}\mathrm {i}}{a\,f\,\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,32{}\mathrm {i}}{3\,a\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^2\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,352{}\mathrm {i}}{15\,a\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^3\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,128{}\mathrm {i}}{5\,a\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^4\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )}-\frac {{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\,\sqrt {a-a\,{\left (\frac {{\mathrm {e}}^{-e\,1{}\mathrm {i}-f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}-\frac {{\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}}{2}\right )}^2}\,64{}\mathrm {i}}{5\,a\,f\,{\left ({\mathrm {e}}^{e\,2{}\mathrm {i}+f\,x\,2{}\mathrm {i}}-1\right )}^5\,\left ({\mathrm {e}}^{e\,1{}\mathrm {i}+f\,x\,1{}\mathrm {i}}+{\mathrm {e}}^{e\,3{}\mathrm {i}+f\,x\,3{}\mathrm {i}}\right )} \]
[In]
[Out]